import React, { Component } from 'react'
import Grandson from './Grandson'
import MyContext from './MyContext'

export default class Child extends Component {
  render() {
    return (
      <div>
        <MyContext.Consumer>
          {
            ({city}) => {
              return  <> chlid:{city}</>
            }
          }
        </MyContext.Consumer>

        <Grandson></Grandson>
      </div>
    )
  }
}
